import Cookies from 'js-cookie'

import defaultSetting from '@/settings'

export function getToken() {
  return Cookies.get(defaultSetting.tokenKey)
}

export function setToken(token) {
  return Cookies.set(defaultSetting.tokenKey, token)
}

export function removeToken() {
  return Cookies.remove(defaultSetting.tokenKey)
}
